﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ResUma
{
    public partial class TipAdaosuriFrm : FrmCard
    {
        public TipAdaosuriFrm(ModuleClass mc)
            : base(mc)
        {
            InitializeComponent();
            workConnString = "ESRPConnectionString";
            eSRPDataSet.TipAdaos.SeImpoziteazaColumn.DefaultValue = false;
            eSRPDataSet.TipAdaos.SeImpoziteazaSeparatColumn.DefaultValue = false;
            eSRPDataSet.TipAdaos.InclusCASColumn.DefaultValue = false;
            eSRPDataSet.TipAdaos.NumaiBrutColumn.DefaultValue = false;
            eSRPDataSet.TipAdaos.SelectatColumn.DefaultValue = true;
            eSRPDataSet.TipAdaos.IdOpContabilaColumn.DefaultValue = 0;
            HandleRezumat += new EventHandler(TipSporuriFrm_HandleRezumat);
        }

        void TipSporuriFrm_HandleRezumat(object sender, EventArgs e)
        {
            /*TipSporuriRezFrm frm = new TipSporuriRezFrm(ModuleInfo, tipSporBindingSource);
            frm.MdiParent = this.MdiParent;
            frm.Show();
            _CloseFormList.Add(frm);*/
        }

        private void TipSporuriFrm_Load(object sender, EventArgs e)
        {
             SqlConnection con = DeschideConexiune(workConnString);
             tipAdaosTableAdapter.Connection = con;
             this.tipAdaosTableAdapter.Fill(this.eSRPDataSet.TipAdaos);
             InchideConexiune(con);
             this.listBndSourceMain.Add(tipAdaosBindingSource);
             listTableAdaptor.Add(tipAdaosTableAdapter.Adapter);
             
        }
    }

}
